<!doctype html>
<html>

<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
</head>
<body>
<script id="myFormdesign" type="text/plain" style="widht:100%">
</script>

<script type="text/javascript" charset="utf-8" src="ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="ueditor.all.js"></script>
<script type="text/javascript" charset="utf-8" src="lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" charset="utf-8" src="formdesign/jquery-1.7.2.min.js"></script>
<!--Fromdesign扩展--->
<script type="text/javascript" charset="utf-8" src="formdesign/formdesign.js"></script>
<script>
    (function () {
        var search = UE.formDesignUtils.getUrlParams();
        var data = {
            action:"activitiGet",
        };
        if(search){
            var p = search.toString().trim().split("&");
            for(var i=0;i<p.length;i++){
                var pp = p[i].trim().split("=");
                data[pp[0].trim()] = pp[1];
            }
        }
        $.get(UEDITOR_CONFIG.serverUrl,data, function (res) {
            res = JSON.parse(res);
            if(res.state=='SUCCESS'){
                var ue = UE.getEditor('myFormdesign',{
                    toolbars:[
                        [
                            "fullscreen",
                            "source",
                            "|",
                            "undo",
                            "redo",
                            "|",
                            "bold",
                            "italic",
                            "underline",
                            "fontborder",
                            "strikethrough",
                            "superscript",
                            "subscript",
                            "removeformat",
                            "formatmatch",
                            "autotypeset",
                            "blockquote",
                            "pasteplain",
                            "|",
                            "forecolor",
                            "backcolor",
                            "insertorderedlist",
                            "insertunorderedlist",
                            "selectall",
                            "cleardoc",
                            "|",
                            "rowspacingtop",
                            "rowspacingbottom",
                            "lineheight",
                            "|",
                            "customstyle",
                            "paragraph",
                            "fontfamily",
                            "fontsize",
                            "|",
                            "directionalityltr",
                            "directionalityrtl",
                            "indent",
                            "|",
                            "justifyleft",
                            "justifycenter",
                            "justifyright",
                            "justifyjustify",
                            "|",
                            "touppercase",
                            "tolowercase",
                            "|",
                            "link",
                            "unlink",
                            "anchor",
                            "|",
                            "imagenone",
                            "imageleft",
                            "imageright",
                            "imagecenter",
                            "|",
                            "simpleupload",
                            "insertimage",
                            "emotion",
                            "scrawl",
                            "insertvideo",
                            "music",
                            "attachment",
                            "map",
                            "gmap",
                            "insertframe",
                            "insertcode",
                            "webapp",
                            "pagebreak",
                            "template",
                            "background",
                            "|",
                            "horizontal",
                            "date",
                            "time",
                            "spechars",
                            "snapscreen",
                            "wordimage",
                            "|",
                            "inserttable",
                            "deletetable",
                            "insertparagraphbeforetable",
                            "insertrow",
                            "deleterow",
                            "insertcol",
                            "deletecol",
                            "mergecells",
                            "mergeright",
                            "mergedown",
                            "splittocells",
                            "splittorows",
                            "splittocols",
                            "charts",
                            "|",
                            "print",
                            "preview",
                            "searchreplace",
                            "drafts",
                            "help",
                            "button_formdesign",
                            "button_save"
                        ]
                    ],
                    toolleipi:true,
                    textarea: 'design_content',
                });
                ue.ready(function(){
                    ue.setContent(res.result);
                });
            }
        }, "text")
    })();


</script>
</body>
</html>
